package com.yingpai.fitness.entity;

import java.util.List;

/**
 * Created by ASUS on 2018/5/23.
 */

public class ReadyOrderBean {


    /**
     * result : success
     * msg : 操作成功
     * map : {"purchaseAmount":1,"merchandisePrice":1,"shoppingCartDTOList":[{"id":null,"merchandiseId":null,"customerId":23,"merchantId":null,"mcipId":27,"merchandiseName":"运动服","propertyValue":"[{\"propertyId\":8,\"propertyValue\":\"S\"},{\"propertyId\":9,\"propertyValue\":\"红色\"}]","quantity":1,"price":1,"inventory":19997,"photoUrl":"http://localhost:8082/merchandisePhotos/20180202/d52a4720-2e91-444e-b9bd-25adf8265d2d234917-121019231h258.jpg"}],"distributionModes":[{"id":1,"distributionMode":"送货到家"},{"id":2,"distributionMode":"到店自取"}],"addresses":{"id":43,"customerId":23,"address":"上海 海宁市 淳安县","receiverName":"啦啦","receiverPhoneNo":"15234109261"},"distributionTimes":[{"id":1,"distributionTime":"送货时间不限"},{"id":2,"distributionTime":"周一至周五送货"},{"id":3,"distributionTime":"双休/节假日送货"}],"propertySet":[{"id":9,"propertyName":"颜色","isAbandoned":false},{"id":8,"propertyName":"尺码","isAbandoned":false}],"postPrice":0}
     */

    private String result;
    private String msg;
    private MapBean map;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public MapBean getMap() {
        return map;
    }

    public void setMap(MapBean map) {
        this.map = map;
    }

    public static class MapBean {
        /**
         * purchaseAmount : 1
         * merchandisePrice : 1
         * shoppingCartDTOList : [{"id":null,"merchandiseId":null,"customerId":23,"merchantId":null,"mcipId":27,"merchandiseName":"运动服","propertyValue":"[{\"propertyId\":8,\"propertyValue\":\"S\"},{\"propertyId\":9,\"propertyValue\":\"红色\"}]","quantity":1,"price":1,"inventory":19997,"photoUrl":"http://localhost:8082/merchandisePhotos/20180202/d52a4720-2e91-444e-b9bd-25adf8265d2d234917-121019231h258.jpg"}]
         * distributionModes : [{"id":1,"distributionMode":"送货到家"},{"id":2,"distributionMode":"到店自取"}]
         * addresses : {"id":43,"customerId":23,"address":"上海 海宁市 淳安县","receiverName":"啦啦","receiverPhoneNo":"15234109261"}
         * distributionTimes : [{"id":1,"distributionTime":"送货时间不限"},{"id":2,"distributionTime":"周一至周五送货"},{"id":3,"distributionTime":"双休/节假日送货"}]
         * propertySet : [{"id":9,"propertyName":"颜色","isAbandoned":false},{"id":8,"propertyName":"尺码","isAbandoned":false}]
         * postPrice : 0
         */

        private String purchaseAmount;
        private double merchandisePrice;
        private AddressesBean addresses;
        private double postPrice;
        private String orderCode;
        private List<ShoppingCartDTOListBean> shoppingCartDTOList;
        private List<DistributionModesBean> distributionModes;
        private List<DistributionTimesBean> distributionTimes;
        private List<PropertySetBean> propertySet;
        private int merchandiseAmount;

        public int getMerchandiseAmount() {
            return merchandiseAmount;
        }

        public void setMerchandiseAmount(int merchandiseAmount) {
            this.merchandiseAmount = merchandiseAmount;
        }

        public String getOrderCode() {
            return orderCode;
        }

        public void setOrderCode(String orderCode) {
            this.orderCode = orderCode;
        }

        public String getPurchaseAmount() {
            return purchaseAmount;
        }

        public void setPurchaseAmount(String purchaseAmount) {
            this.purchaseAmount = purchaseAmount;
        }

        public double getMerchandisePrice() {
            return merchandisePrice;
        }

        public void setMerchandisePrice(double merchandisePrice) {
            this.merchandisePrice = merchandisePrice;
        }

        public AddressesBean getAddresses() {
            return addresses;
        }

        public void setAddresses(AddressesBean addresses) {
            this.addresses = addresses;
        }

        public double getPostPrice() {
            return postPrice;
        }

        public void setPostPrice(double postPrice) {
            this.postPrice = postPrice;
        }

        public List<ShoppingCartDTOListBean> getShoppingCartDTOList() {
            return shoppingCartDTOList;
        }

        public void setShoppingCartDTOList(List<ShoppingCartDTOListBean> shoppingCartDTOList) {
            this.shoppingCartDTOList = shoppingCartDTOList;
        }

        public List<DistributionModesBean> getDistributionModes() {
            return distributionModes;
        }

        public void setDistributionModes(List<DistributionModesBean> distributionModes) {
            this.distributionModes = distributionModes;
        }

        public List<DistributionTimesBean> getDistributionTimes() {
            return distributionTimes;
        }

        public void setDistributionTimes(List<DistributionTimesBean> distributionTimes) {
            this.distributionTimes = distributionTimes;
        }

        public List<PropertySetBean> getPropertySet() {
            return propertySet;
        }

        public void setPropertySet(List<PropertySetBean> propertySet) {
            this.propertySet = propertySet;
        }

        public static class AddressesBean {
            /**
             * id : 43
             * customerId : 23
             * address : 上海 海宁市 淳安县
             * receiverName : 啦啦
             * receiverPhoneNo : 15234109261
             */

            private int id;
            private int customerId;
            private String address;
            private String receiverName;
            private String receiverPhoneNo;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getCustomerId() {
                return customerId;
            }

            public void setCustomerId(int customerId) {
                this.customerId = customerId;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getReceiverName() {
                return receiverName;
            }

            public void setReceiverName(String receiverName) {
                this.receiverName = receiverName;
            }

            public String getReceiverPhoneNo() {
                return receiverPhoneNo;
            }

            public void setReceiverPhoneNo(String receiverPhoneNo) {
                this.receiverPhoneNo = receiverPhoneNo;
            }
        }

        public static class ShoppingCartDTOListBean {
            /**
             * id : null
             * merchandiseId : null
             * customerId : 23
             * merchantId : null
             * mcipId : 27
             * merchandiseName : 运动服
             * propertyValue : [{"propertyId":8,"propertyValue":"S"},{"propertyId":9,"propertyValue":"红色"}]
             * quantity : 1
             * price : 1
             * inventory : 19997
             * photoUrl : http://localhost:8082/merchandisePhotos/20180202/d52a4720-2e91-444e-b9bd-25adf8265d2d234917-121019231h258.jpg
             */

            private Object id;
            private Object merchandiseId;
            private int customerId;
            private Object merchantId;
            private int mcipId;
            private String merchandiseName;
            private String propertyValue;
            private int quantity;
            private double price;
            private int inventory;
            private String photoUrl;
            private List<ShopDetailMcipChildBean> propertyList;

            public List<ShopDetailMcipChildBean> getPropertyList() {
                return propertyList;
            }

            public void setPropertyList(List<ShopDetailMcipChildBean> propertyList) {
                this.propertyList = propertyList;
            }

            public Object getId() {
                return id;
            }

            public void setId(Object id) {
                this.id = id;
            }

            public Object getMerchandiseId() {
                return merchandiseId;
            }

            public void setMerchandiseId(Object merchandiseId) {
                this.merchandiseId = merchandiseId;
            }

            public int getCustomerId() {
                return customerId;
            }

            public void setCustomerId(int customerId) {
                this.customerId = customerId;
            }

            public Object getMerchantId() {
                return merchantId;
            }

            public void setMerchantId(Object merchantId) {
                this.merchantId = merchantId;
            }

            public int getMcipId() {
                return mcipId;
            }

            public void setMcipId(int mcipId) {
                this.mcipId = mcipId;
            }

            public String getMerchandiseName() {
                return merchandiseName;
            }

            public void setMerchandiseName(String merchandiseName) {
                this.merchandiseName = merchandiseName;
            }

            public String getPropertyValue() {
                return propertyValue;
            }

            public void setPropertyValue(String propertyValue) {
                this.propertyValue = propertyValue;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public int getInventory() {
                return inventory;
            }

            public void setInventory(int inventory) {
                this.inventory = inventory;
            }

            public String getPhotoUrl() {
                return photoUrl;
            }

            public void setPhotoUrl(String photoUrl) {
                this.photoUrl = photoUrl;
            }
        }

        public static class DistributionModesBean {
            /**
             * id : 1
             * distributionMode : 送货到家
             */

            private int id;
            private String distributionMode;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getDistributionMode() {
                return distributionMode;
            }

            public void setDistributionMode(String distributionMode) {
                this.distributionMode = distributionMode;
            }
        }

        public static class DistributionTimesBean {
            /**
             * id : 1
             * distributionTime : 送货时间不限
             */

            private int id;
            private String distributionTime;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getDistributionTime() {
                return distributionTime;
            }

            public void setDistributionTime(String distributionTime) {
                this.distributionTime = distributionTime;
            }
        }

        public static class PropertySetBean {
            /**
             * id : 9
             * propertyName : 颜色
             * isAbandoned : false
             */

            private int id;
            private String propertyName;
            private boolean isAbandoned;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getPropertyName() {
                return propertyName;
            }

            public void setPropertyName(String propertyName) {
                this.propertyName = propertyName;
            }

            public boolean isIsAbandoned() {
                return isAbandoned;
            }

            public void setIsAbandoned(boolean isAbandoned) {
                this.isAbandoned = isAbandoned;
            }
        }
    }
}
